define(function(require, exports, module) {

	var $ = require('jquery');
	require('artTemplate/artTemplate/2.0.1/template.js');
	require('jquery/jquery-form/1.0.0/jquery.form.js');
	require('jquery/jquery-json/2.4.0/jquery.json.js');
	require('seajs/seajs/2.1.1/sea.js');

	exports.options = {
		listLink : '',
		listParams : '',
		pageLink : '',
		pageParams : ''
	};
	
	//提交项目信息
	$('.add-submit').click(function(){
		var postData = $.toJSON(form2js('update-form', '.', true));
		//console.log(postData);
		$.ajax({
			url : $CONFIG.base_url + "/api/admin/charitarian/update",
			type : "POST",
			data : postData,
			dataType : "json",
			contentType : "application/json",
			success : function() {
				$.jBox.tip("更新投资人信息成功！");
				setTimeout(function(){window.location.href=$CONFIG.base_url + '/'+$CONFIG.admin_url+'/verify/user';},1000);
			},
			error : function() {
				$.jBox.tip("更新投资人信息失败！");
			}
		});
	});
});